package 嵌套循环;
public class Demo7 {
    public static void main(String[] args) {
        int count=0;
        while (true){
            int random=(int)(Math.random()*100)+1;
            count++;
            if (random==97){
                break;
            }
        }
        System.out.println("结果是:"+count);
    }
}
